<%@ page language="java" 
import="java.util.*,model.common.JobSituation,dao.common.JobSituationDao,action.common.JobsituationAction"
contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="css/JobSituation.css" />
<title>Insert title here</title>
</head>
<body>
<img src="img/未标题-1.jpg" width="1140" height="100" />
<div id="Home">
  <ul>
<li><a href="managerHome.jsp">首页</a></li>
   <li><a>用户管理</a>
     <ul>
       <li><a href="employee.jsp">员工信息</a></li>
       <li><a href="jobsituation.jsp">在职情况</a></li>
     </ul>
     
   </li> 
   <li><a>进货管理</a>
     <ul>
       <li><a href="stockplan.jsp">进货计划</a></li>
     </ul>  
   
   </li>
   <li><a>库存管理</a>
     <ul>
       <li><a href="repertory.jsp">库存查询</a></li>
     </ul>
   
   </li>
   <li><a>销售管理</a>
     <ul>
       <li><a href="sellsituation.jsp">销售情况</a></li>
     </ul>   
   
   </li>
   <li><a>系统</a>
     <ul>
       <li><a href="systemMessage.jsp">系统报告</a></li>
     </ul>   
   
   </li>
</div>
   
<table class="datalist" id="JobSituation">  
   <caption><strong><h1>在职情况表</h1></strong></caption>
    <tr>  
        <th scope="col"><strong>员工编号</strong></th>  
        <th scope="col"><strong>员工名字</strong></th>  
        <th scope="col"><strong>员工年龄</strong></th>  
        <th scope="col"><strong>员工性别</strong></th>  
        <th scope="col"><strong>电子邮件</strong></th> 
        <th scope="col"><strong>员工住址</strong></th>  
        <th scope="col"><strong>身份证号</strong></th>  
        <th scope="col"><strong>电话号码</strong></th>   
        <th scope="col"><strong>进入时间</strong></th> 
        <th scope="col"><strong>在职情况</strong></th> 
        <th scope="col"><strong>进行操作</strong></th>       
    </tr>
    
    
		<%
 List<JobSituation> list=new ArrayList<JobSituation>(); 
		JobsituationAction act=new JobsituationAction();
	list=act.query(null);
	request.getSession().setAttribute("JobSituation",list); 
    
  if(session.getAttribute("JobSituation")!=null){
	  list=(List)session.getAttribute("JobSituation");
	  if(list.size()>0){
		  JobSituation js;
		  for(int i=0;i<list.size();i++){
			  js=new JobSituation();
		         js=(JobSituation)list.get(i);
		         %>
		<tr>
			<td scope="col"><strong><%=js.getEmployeeId() %></strong></td>
			<td scope="col"><strong><%=js.getEmployeeName() %></strong></td>
			<td scope="col"><strong><%=js.getEmployeeAge() %></strong></td>
			<td scope="col"><strong><%=js.getEmployeeSex() %></strong></td>
			<td scope="col"><strong><%=js.getEmployeeEmail() %></strong></td>
			<td scope="col"><strong><%=js.getEmployeeAddress() %></strong></td>
			<td scope="col"><strong><%=js.getEmployeeIdentifyId() %></strong></td>
			<td scope="col"><strong><%=js.getEmployeeTelephone() %></strong></td>
			<td scope="col"><strong><%=js.getEntryTime() %></strong></td>
			<td scope="col"><strong><%=js.getJobStatus() %></strong></td>
			<td scope="col">
			<strong> <a href="?id=<%=js.getEmployeeId()%>" style="width:40px;display:block;float:left"/>删除</a>
			         <a href="?id=<%=js.getEmployeeId()%> "style="width:40px;display:block;float:right"/>修改</a>
			</strong>
			</td>
		</tr>

		<%
		  }
	  }
}

%>  
    <tr>                  <!-- 奇数行 -->  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td> 
        <td>&nbsp;</td>
        
        
    </tr>  
    <tr class="altrow">      
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td> 
        <td>&nbsp;</td> 
        <td>&nbsp;</td> 
    </tr>  
    <tr>                  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>
    </tr>  
    <tr class="altrow">       
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td> 
        <td>&nbsp;</td> 
        <td>&nbsp;</td>
    </tr>  
    <tr>                  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td> 
        <td>&nbsp;</td> 
        <td>&nbsp;</td> 
    </tr>  
    <tr class="altrow">       
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td> 
        <td>&nbsp;</td> 
        <td>&nbsp;</td> 
    </tr>  
    <tr>                  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>
        <td>&nbsp;</td> 
        <td>&nbsp;</td> 
    </tr> 
    </table> 
</body>
</html>